package ooday01;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/21 10:55
 */
public class Test {
    public static void main(String[] args) {
        //创建一个学生对象
        Student stu = new Student();
        //访问成员变量
        stu.name = "Jack";
        stu.age = 18;
        stu.className = "ClassOne";
        stu.stuId = "1212";
        //调用方法
        stu.playWith("Mara");
        stu.study();
        stu.sayHi();

        Student xm = new Student();
        xm.name = "小明";
        xm.age = 15;
        xm.className = "ClassFour";
        xm.stuId = "12121212";
        xm.sayHi();
        xm.playWith("Jack");
        xm.study();

        Car car = new Car("靡磊","黑",1);
        car.start();
        car.run();
        car.stop();
        Car car1 = new Car("迈凯伦","黑",0.5);
        car1.start();
        car1.run();
        car1.stop();
    }

}
